package cn.gson.springboot.model.dao;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository; 

import cn.gson.springboot.model.pojos.MedicalCardPx;
//医疗卡DAO
public interface MedicalCardDAO extends CrudRepository<MedicalCardPx, Integer> {
		
	//根据医疗卡卡号查询
	@Query("select m from  MedicalCardPx m where m.mecardNumber=?1")
	public  MedicalCardPx khchak(String mecardNumber);
	
	
	//根据医疗卡id查询
	@Query("select m from  MedicalCardPx m where m.mzcardId=?1")
	public  MedicalCardPx chak(Integer mzcardId);
	
	
}
